package org.jiuling.aliyun.sms.convert;

import org.jiuling.aliyun.sms.model.SendSmsResponseModel;

/**
 * 发送短信响应转换
 * @author 紫灵
 * @date 2023年02月10日 10时06分22秒
 */
public class SendSmsResponseConvert {

    /** 私有构造方法，禁止创建对象 */
    private SendSmsResponseConvert() {
    }

    /**
     * 内容转模型
     * @param sendSmsResponseBody 发送短信响应内容
     * @return 发送短信响应模型
     */
    public static SendSmsResponseModel bodyToModel(com.aliyun.sdk.service.dysmsapi20170525.models.SendSmsResponseBody sendSmsResponseBody){
        SendSmsResponseModel sendSmsResponseModel = new SendSmsResponseModel();
        sendSmsResponseModel.setBizId(sendSmsResponseBody.getBizId());
        sendSmsResponseModel.setCode(sendSmsResponseBody.getCode());
        sendSmsResponseModel.setMessage(sendSmsResponseBody.getMessage());
        sendSmsResponseModel.setRequestId(sendSmsResponseBody.getRequestId());
        return sendSmsResponseModel;
    }

    /**
     * 内容转模型
     * @param sendSmsResponseBody 发送短信响应内容
     * @return 发送短信响应模型
     */
    public static SendSmsResponseModel bodyToModel(com.aliyun.dysmsapi20170525.models.SendSmsResponseBody sendSmsResponseBody){
        SendSmsResponseModel sendSmsResponseModel = new SendSmsResponseModel();
        sendSmsResponseModel.setBizId(sendSmsResponseBody.getBizId());
        sendSmsResponseModel.setCode(sendSmsResponseBody.getCode());
        sendSmsResponseModel.setMessage(sendSmsResponseBody.getMessage());
        sendSmsResponseModel.setRequestId(sendSmsResponseBody.getRequestId());
        return sendSmsResponseModel;
    }

    /**
     * 内容转模型
     * @param sendBatchSmsResponseBody 发送批量短信响应内容
     * @return 发送短信响应模型
     */
    public static SendSmsResponseModel bodyToModel(com.aliyun.sdk.service.dysmsapi20170525.models.SendBatchSmsResponseBody sendBatchSmsResponseBody){
        SendSmsResponseModel sendSmsResponseModel = new SendSmsResponseModel();
        sendSmsResponseModel.setBizId(sendBatchSmsResponseBody.getBizId());
        sendSmsResponseModel.setCode(sendBatchSmsResponseBody.getCode());
        sendSmsResponseModel.setMessage(sendBatchSmsResponseBody.getMessage());
        sendSmsResponseModel.setRequestId(sendBatchSmsResponseBody.getRequestId());
        return sendSmsResponseModel;
    }

    /**
     * 内容转模型
     * @param sendBatchSmsResponseBody 发送批量短信响应内容
     * @return 发送短信响应模型
     */
    public static SendSmsResponseModel bodyToModel(com.aliyun.dysmsapi20170525.models.SendBatchSmsResponseBody sendBatchSmsResponseBody){
        SendSmsResponseModel sendSmsResponseModel = new SendSmsResponseModel();
        sendSmsResponseModel.setBizId(sendBatchSmsResponseBody.getBizId());
        sendSmsResponseModel.setCode(sendBatchSmsResponseBody.getCode());
        sendSmsResponseModel.setMessage(sendBatchSmsResponseBody.getMessage());
        sendSmsResponseModel.setRequestId(sendBatchSmsResponseBody.getRequestId());
        return sendSmsResponseModel;
    }
}
